<!DocType html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
  <meta content="text/html;charset=utf-8"/>
 </head>
 <script type="text/javascript" th:src="@{/js/selectuser.js}"></script>
 <body>
 <form action="http://localhost:8080/getUsers/selectUser" method="get">
  <table border="1">
   <tr id="table">
    <td><button onclick="as()">删除</button></td>
    <th>用户编号</th>
    <th>用户序号</th>
    <th>用户账号</th>
    <th>用户名称</th>
    <th>用户邮箱</th>
    <th>用户电话</th>
    <th>注册时间</th>
    <th>最后登录时间</th>
    <th>修改</th>
   </tr>
   <tr th:each="user,userStat:${list}">
    <td><input type="checkbox" id="cbox" name="cbox1" th:value="${user.uid}" /></td>
    <td th:text="${user.uid}" ></td>
    <td th:text="${userStat.index}"></td>
    <td th:text="${user.loname}"></td>
    <td th:text="${user.uname}"></td>
    <td th:text="${user.email}"></td>
     <td th:text="${user.tell}"></td>
    <td th:text="${user.registertime}" ></td>
    <td th:text="${user.lastlogintime}" ></td>
    <td><button th:value="${user.uid}" th:id="${user.uid}" onclick="ad(this)">修改</button></td>
   </tr>
  </table>
  </form>
 </body>
</html>